package com.shelpe.services.sinbadgateway.entity.jpa;

import java.math.BigDecimal;
import java.sql.Date;
import java.sql.Timestamp;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Transient;

import lombok.Data;

@Entity
@Data
public class Users {

	public final static int USER_TYPE_PROXY = 2;
	public final static int USER_TYPE_PURCHASE = 1;
	public final static int USER_TYPE_PRIMARY = 3;
	
	@Id
	private Long userId;
	private String type;
	private String nick;
	private String sex;
	private String desc;
	private Integer sid;
	private Integer cid;
	private String avatar;
	private String other;
	private String email;
	private Date createdTime;
	private Timestamp updatedTime;
	private String qq;
	private String mobile;
	private String address;
	private String wangwang;
	private Integer init;
	private BigDecimal balance;
	private String shopScore;
	@Transient
	private Date purchasedFrom;
	private Date purchaseExpires;
	private String authorizedTo;
	private String authorizedUsers;
	private String itemCode;
	private Integer status;
	private Integer userType;
}
